﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Nvigorate.Logging;

namespace Nvigorate.Test.Aspect
{
    public class TestLogAdapter : ILogAdapter
    {
        public Severities ErrorLevel { get; set; }

        public static int LoggedExceptions { get; set; }

        public void LogError(string machineName, string user, string application, string assembly, string className, string method, Severities severity, string exceptionText, string errorMessage, params string[] messageParameters)
        {
            LoggedExceptions += 1;
        }

        public bool LoadConfiguration(XElement xml)
        {
            return true;
        }
    }
}
